#!/bin/bash

# this is an sample shell script
# you will need to develop this to 
# complete the assignment for week 7

echo "Test Case 1: Testing 30/30..."

tc=`java -jar Grades_v2.jar 30 30`

if [ "$tc" = "Component Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 2: Testing 40/40..."

tc=`java -jar Grades_v2.jar 40 40`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
fi

echo "Test Case 3: Testing 60/60..."

tc=`java -jar Grades_v2.jar 60 60`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
fi

echo "Test Case 4: Testing 90/80..."

tc=`java -jar Grades_v2.jar 90 80`

if [ "$tc" = "Pass with distinction" ]
  then
  echo "Test Passed"
fi

echo "Test Case 5: Testing 0/90..."

tc=`java -jar Grades_v2.jar 0 90`

if [ "$tc" = "Fail" ]
  then
  echo "Test Passed"
fi


